import type { MenuProps } from "antd";

enum ImportExportLabel {
  Import = '导入',
  Export = '导出',
  StepFile = 'step文件',
  NasFile = 'nas文件',
}

enum ImportExportKey {
  Import = 'import',
  Export = 'export',
  StepImport = 'step-import',
  NasImport = 'nas-import',
  StepExport = 'step-export',
  NasExport = 'nas-export',
}

export const fileMenuItem: MenuProps['items'] = [
  {
    label: ImportExportLabel.Import,
    key: ImportExportKey.Import,
    children: [
      {
        label: ImportExportLabel.StepFile,
        key: ImportExportKey.StepImport, // 使用修改后的 key
      },
      {
        label: ImportExportLabel.NasFile,
        key: ImportExportKey.NasImport,   // 使用修改后的 key
      },
    ],
  },
  {
    label: ImportExportLabel.Export,
    key: ImportExportKey.Export,
    children: [
      {
        label: ImportExportLabel.StepFile,
        key: ImportExportKey.StepExport, // 使用修改后的 key
      },
      {
        label: ImportExportLabel.NasFile,
        key: ImportExportKey.NasExport,   // 使用修改后的 key
      },
    ],
  },
];
